//
//  configure.swift
//  HealthMonitoring
//
//  Created by 珠海正杰 on 2018/6/6.
//  Copyright © 2018年 YTYanK. All rights reserved.
//

import UIKit




class configure: NSObject {
//   public var HMColor: UIColor =
    
    /// 微信第三方SDK -开放平台
    let wxAppID = "wx03d704215ea4560d"
    let wxAppSecret = "20f4e68972aa3fe6623a3ec320936428"
    
    var token: String?
    static let shareConfigure: configure = {
        let _configure  = configure()
        return _configure
    }()
    /// 浅蓝色 - 主题颜色
    public let HMColor1 = UIColor.init(red: 39, green: 158, blue: 220)
    /// 银灰色 - 背景颜色
    public let HMColor2 = UIColor.RGBA(r: 236, g: 237, b: 235, a: 1)
    /// 深一点的灰 线条专用 180 灰色
    public let HMColor3 = UIColor.RGBA(r: 180, g: 180, b: 180, a: 1)
    
    /// 121 灰色
    public let HMColor4 = UIColor.RGBA(r: 121, g: 121, b: 121, a: 1)
    
    /// 字体大小 - 小
    public let HMSize_15 = UIFont.systemFont(ofSize: 15)
    /// 字体大小 - 中
    public let HMSize_18 = UIFont.systemFont(ofSize: 18)
    /// 字体大小 - 大
    public let HMSize_20 = UIFont.systemFont(ofSize: 20)
    
    /// 状态栏高度
    public let statusHeight: CGFloat =  UIApplication.shared.statusBarFrame.height
    /// 当前设备屏幕高度
    public let screenHeight: CGFloat = UIScreen.main.bounds.size.height
    /// 当前设备屏幕宽度
    public let screenWidth: CGFloat = UIScreen.main.bounds.size.width
    
    /// 全局 用来记录全导航条高度 - 默认 0 的高度
    public var navHeight:CGFloat =  0
    
    //http://localhost:8080/sms-code/verification?phone=15390982140&code=388770
    
    /// 全局的请求IP
    public let IP =  "http://112.90.146.226:9090/"
    /// 图片IP
    public let IP_diagonal = "http://112.90.146.226:9090"
    /// iphoneX 高度
    public let glt_iphoneX = (UIScreen.main.bounds.height == 812.0)
//    func HMColor1 () -> UIColor {
//        return UIColor.init(red: 39, green: 158, blue: 220)
//    }
    /// 记录用户注册时角色 - 默认 1 用户
     public var hm_role: Int =   UserDefaults.standard.integer(forKey: "hm_role")
    /// 记录是否什么设备登陆 - 默认 ios 2
     public var hm_platform: Int = 2  //UserDefaults.standard.integer(forKey: "hm_platform")
    
    
   /// seleoctIndex  UserDefaults All  key
     public let  HEALTH_SELECT_INDEX = "Health_Select_Index"
}

extension configure {

}

